﻿/**
 * @author colin
 */
class com.mixmedia.mx.Event {
	public var target;//untype
	public var type:String;

	public static var ERROR:String = "onError";
	public static var INIT:String = "onInit";
	public static var COMPLETE:String = "onComplete";
	public static var PROGRESS:String = "onProgress";
	public static var START:String = "onStart";
	public static var CHANGE:String = "onChange";
	public static var LOG:String = "onLog";
	public static var RELEASE :String = "onRelease";
	public static var RESET : String = "onReset";
	public static var ROLLOVER : String = "onRollOver";
	public static var ROLLOUT : String = "onRollOut";
	public static var CLICK : String = "onClick";

	public static var OPEN : String = "onOpen";
	public static var READY : String = "onReady";
	public static var STOP : String = "onStop";
	public static var SCROLL : String = "onScroll";

	public static var CLOSE : String = "onClose";
	public static var TWEENSTART:String = "onTweenStart";
	public static var TWEENING:String = "onTween";
	public static var TWEENEND :String ="onTweenEnd";

	public static var PLAY : String = "onPlay";

	public static var MIN : String = "onMin";
	public static var MAX : String = "onMax";

	public static var ENTERFRAME : String="onEnterFrame";
	
	public function Event(target:Object,type:String,prop:Object){
		this.target = target;
		this.type = type;
		for(var name in prop){
			this[name] = prop[name];
		}
	}
}